package no.doomsday.scripting.simplescriptengine.scriptevents 
{
	import no.doomsday.scripting.simplescriptengine.ScriptCore;
	/**
	 * ...
	 * @author Andreas Rønning (andreas@doomsday.no)
	 */
	public class ScriptEventBranch implements IScriptBranch
	{
		private var _sequence:Vector.<IScriptExecutable> = new Vector.<IScriptExecutable>();
		private var _id:String;
		public function ScriptEventBranch(id:String, branch:String,core:ScriptCore) 
		{
			_id = id;
			_sequence = ScriptEventFactory.createEvents(branch,core);
			core.print("\tSequence length :" + _sequence.length);
			core.print("Created branch with ID: '" + id + "'");
		}
		
		public function get sequence():Vector.<IScriptExecutable> { return _sequence; }
		
		public function get id():String { return _id; }
		
	}

}